package com.hbt.myplus.controller;

import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.hbt.myplus.service.IDrugCatogoryService;
import com.hbt.myplus.service.impl.DrugCatogoryServiceImpl;
import com.hbt.myplus.model.DrugCatogory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.hbt.myplus.utils.ResponseWeb;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
    *  前端控制器
    * </p>
 *
 * @author astupidcoder
 * @since 2020-12-22
 * @version v1.0
 */
@RestController
@RequestMapping("drug/catogory")


public class DrugCatogoryController {

    private Logger logger = LoggerFactory.getLogger(getClass());
    @Autowired
    private DrugCatogoryServiceImpl drugCatogoryService;

    /**
     * 查询分页数据
     */
    @GetMapping(value = "/s")
    public ResponseWeb<Page> findListByPage(@RequestParam(name = "pageNum", defaultValue = "1") int pageNum,@RequestParam(name = "pageSize", defaultValue = "20") int pageSize){
        return null;
    }


    /**
     * 根据id查询
     */
    @GetMapping(value = "/{id}")
    public ResponseWeb<DrugCatogory> getById(@PathVariable("id") String id){
       return null;
    }

    /**
     * 新增
     */
    @PostMapping
    public ResponseWeb<DrugCatogory> add(@RequestBody DrugCatogory drugCatogory){
        return null;
    }

    /**
     * 删除
     */
    @DeleteMapping
    public ResponseWeb<String> delete(@RequestParam("ids") List<String> ids){
        return null;
    }

    /**
     * 修改
     */
    @PutMapping
    public ResponseWeb<DrugCatogory> update(@RequestBody DrugCatogory drugCatogory){
        return null;
     }

}
